import router from '@system.router';
router.push({
    uri: 'pages/detail/detail',  // 指定要跳转的页面
});
export default {

    data: {
        barData: [
            {
                fillColor: '#17cad4',
                data: [535, 776, 615, 444, 694, 785, 677, 609, 562, 410],
            },

        ],
        barOps: {
            //x轴的最小值为0，最大值为20
            xAxis: {
                min: 0,
                max: 20,
                display: true,
                axisTick: 10,
            },
            //y轴最小值为0，最大值为1000
            yAxis: {
                min: 0,
                max: 1000,
                display: true,
            },
        },



    lineData: [
      {
        strokeColor: '#993a41',  //设置想要的颜色
        data: [763, 550, 551, 554, 731, 654, 525, 696, 595, 628, 900],
      }
    ],
    lineOps: {
        //x轴的最小值为0，最大值为10
      xAxis: {
        min: 0,
        max: 10,
        display: false,  //不显示
        axisTick: 10,    //轴为10
      },
        //y轴最小值为0，最大值为1000
      yAxis: {
        min: 0,
        max: 1000,
        display: false,   //不显示
      },
      series: {
        lineStyle: {
          width: "3px",   //宽度为3px
          smooth: true,   //平滑
        },
        headPoint: {
          shape: "circle",    //形状为圆圈
          size: 10,           //大小为10
          strokeWidth: 3,     //宽度为3
          fillColor: '#ffffff',
          strokeColor: '#993a41',
          display: true,
        },
        loop: {
          margin: 2,   //与边缘距离为2
        }
      }
    },
},
    launch() {
        router.push ({
            uri:'pages/dianchi/voltage2/index', // 指定要跳转的页面
        })
    }
}
